package com.zj.statement;

import com.zj.executor.Executor;
import com.zj.mapping.MappedStatement;

import java.sql.*;

public class PreparedStatementHandler extends BaseStatementHandler {

    public PreparedStatementHandler(Executor executor, MappedStatement mappedStatement, Object parameter) {
        super(executor, mappedStatement, parameter);
    }
    protected Statement instantiateStatement(Connection connection) throws SQLException {
        String sql = boundSql.getSql();
        return connection.prepareStatement(sql);
    }
}
